package com.gitee.feizns.itrip.personal.utils.service.impl;

import com.gitee.feizns.itrip.personal.utils.service.EmailService;
import com.gitee.feizns.itrip.personal.utils.bean.EmailBean;

/**
 * @author feizns
 * @since 2018/12/28 0028
 */
public class EmailServiceImpl implements EmailService {

    private EmailBean emailBean;

    public void setEmailBean(EmailBean emailBean) {
        this.emailBean = emailBean;
    }

    public EmailServiceImpl(EmailBean emailBean) {
        this.emailBean = emailBean;
    }

    @Override
    public void send(String to, Object... placeholder) {
        emailBean.send(to, placeholder);
    }

}
